package com.tomagency.cyberlab.server.util;

import java.util.List;

import org.apache.log4j.Level;
import org.apache.log4j.Logger;


public class LoggingUtilImpl implements LoggingUtil {
	

	@Override
	public Logger getLogger() {

		Logger logger=Logger.getRootLogger();
//		logger.setLevel(Level.INFO);
		return logger;
	}
	@Override
	public Logger getLogger(Class cl) {
		Logger logger =Logger.getLogger(cl);
//		logger.setLevel(Level.INFO);
		return logger;
	}
	@Override
	public Logger getLogger(String name) {
		Logger logger =Logger.getLogger(name);
//		logger.setLevel(Level.INFO);
		return logger;
	}
	@Override
	public Logger getAccessLogger(String name) {
		return Logger.getLogger(ACCESS_LOGGER_NAME+"."+name);
	}

	@Override
	public Logger getScannerLogger(String name) {
		return Logger.getLogger(SCANNER_LOGGER_NAME+"."+name);
	}
	@Override
	public Logger getApiLogger(String name) {
		return Logger.getLogger(API_LOGGER_NAME+"."+name);
	}


}
